<!DOCTYPE html>
<html>
<head>
    <title>Transition Animation Example</title>
    <style>
        /* Styling for the button */
        .button {
            padding: 10px 20px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            /*? 关键代码 变化背景色 时间0.3s 平滑*/
            transition: background-color 0.3s ease;
        }

        /*? 当鼠标放上去，开始变化颜色*/
        .button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
<button class="button">Hover Me!</button>
</body>
</html>
